﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DatabaseUserTest.Model
{
    class WeightedGraphEdge : IComparable
    {
        public double weight;
        public string from;
        public GraphNode to;

        public WeightedGraphEdge(double weight, string from, GraphNode to)
        {
            this.weight = weight;
            this.from = from;
            this.to = to;
        }
        public int CompareTo(object y)
        {
            WeightedGraphEdge other = y as WeightedGraphEdge;
            return this.weight.CompareTo(other.weight);
        }

    }
}